package com.my.main.service.userAndRight.serviceImpl;

import com.my.main.base.mapper.BaseMapper;
import com.my.main.base.service.Impl.BaseServiceImpl;
import com.my.main.entity.userAndRight.SysUserContractTypeRelation;
import com.my.main.mapper.userAndRight.SysUserContractTypeRelationMapper;
import com.my.main.service.userAndRight.SysUserContractTypeRelationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * 用户、角色与合同分类关系表service实现类
 */
@Service
@Transactional
public class SysUserContractTypeRelationServiceImpl extends BaseServiceImpl<SysUserContractTypeRelation> implements SysUserContractTypeRelationService {

    @Autowired
    private SysUserContractTypeRelationMapper sysUserContractTypeRelationMapper;

    @Resource(name= "sysUserContractTypeRelationMapper")
    public void setBaseMapper(BaseMapper<SysUserContractTypeRelation> mapper) {
        super.setBaseMapper(mapper);
    }

    
    @Override
    public List<String> queryContractTypeIdListByUserIdAndRoleIdList(String userId, List<String> roleIdList) {
        return sysUserContractTypeRelationMapper.queryContractTypeIdListByUserIdAndRoleIdList(userId, roleIdList);
    }

}
